package Telephone;

import java.sql.Date;
import java.util.ArrayList;

public class GSMTest {

	public static void main(String[] args)
	{
		//Telephone.getNokiaN95();
		
		ArrayList<Telephone> telephones = new ArrayList<Telephone>();
		
		telephones.add(new Telephone("Galaxy", "Samsung", 300, "Az", new Battery("B4", 68, 10), new Diplay(10, 20000)));
		telephones.add(new Telephone("Desire", "HTC", 200, "some", new Battery("li-ion", 4, 40), new Diplay(12, 30000)));
		
		for (Telephone telephone : telephones )
		{
			System.out.println();
			System.out.println( telephone.toString());
		}
	
	
		Telephone tel = new Telephone("Xperia", "Sony", 1000, "SomeOne", new Battery("liIon", 12, 100), new Diplay(10, 20000));
		System.out.println(tel.toString());
	

		tel.makeCall(new Call(new Date(0), 10));
		tel.makeCall(new Call(new Date(1), 12));
		
		tel.callHistory();
		
		
		
	}
}
